import { IState, ITodo } from '../typings'
import * as Types from './actionTypes'
export default {
  [Types.SET_TODO](state: IState, todo: ITodo): void {
    state.list.unshift(todo)
  },
  [Types.SET_TODO_LIST](state: IState, todoList: ITodo[]): void {
    state.list = todoList
  },
}
